package com.baosight.risk.webservice;

import com.baosight.risk.service.zbaa.vo.CarboardRequest;
import com.baosight.risk.service.zbaa.vo.CarboardResponse;

public class CarboardWebService {

    // 测试环境
    private final String URL = "http://ecommerce.ibaosteel.com/baosteel_csm/services/yhybKpiServise";

    /**
     * @description 调用方法
     * @date 2020/5/18
     */
    public String sendRequest(CarboardRequest param) throws Exception {
        String namespace = "http://model.webservices.of.bsi.baosteel.baosight.com";
        String complexType = "YhybKpiDataCmd";

        WsCall call = new WsCall(URL, "queryYhybKpiData");
        call.init();
        String result = (String) call.invokeByNamespace(namespace, complexType, new CarboardRequest(), new CarboardResponse(), new CarboardRequest[]{param});
        System.out.println("调用结束！返回：" + result);
        return result;
    }


}
